package com.cloud.tsp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.api.constants.StrVoPage;
import com.cloud.api.domain.alarm.QueryAccident;
import com.cloud.api.domain.stats.QueryRecord;
import com.cloud.api.domain.stats.RecordList;
import com.cloud.api.domain.tsp.*;
import com.cloud.mybatis.domain.TableDataInfo;

import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * OLAP 服务类
 * </p>
 *
 * @author haohaibo
 * @since 2023-12-01
 */
public interface IVehicleDataService extends IService<VehicleData> {

    TableDataInfo<VehicleLocation> selectTrackByVinTime(VinTimePeriod para);
    TableDataInfo<VehicleLocation> selectTrackByVinTimeNoCorrect(StrVoPage para);

    VehicleDataVo selectVehicleDataByVin(String id);

    TableDataInfo<RecordList> selectRecord(QueryRecord para);

    VehicleDataVo selectRecordDetail(QueryRecord para);

    String getLocation(BigDecimal latData, BigDecimal lngData);

    LockStatus selectVehicleData(String vin);

    List<LocalDateTime> existVinDataTime(VinTimePeriod para);
}